package cn.rubintry.weacar.autodingtalk

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log

class StartupReceiver : BroadcastReceiver() {
    override fun onReceive(context: Context?, intent: Intent?) {
        Log.d("TAG", "onReceive: ")

        val intent = Intent("com.alibaba.android.rimet.biz.LaunchHomeActivity")
        intent.setClassName(
            "com.alibaba.android.rimet",
            "com.alibaba.android.rimet.biz.LaunchHomeActivity"
        )
        intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
        context?.startActivity(intent)
    }
}